<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>v-html v-text v-pre</title>
  </head>
  <body>
    <div id="app">
      <div v-html="str"></div>
      <div v-text="str"></div>
      <div>{{str}}</div>
      <div v-pre>{{str}}</div>
    </div>
    <script src="../lib/vue.global.js"></script>
    <script>
      Vue.createApp({
        data() {
          return {
            str: "<h1>你好啊，小程</h1>",
          };
        },
      }).mount("#app");
    </script>
  </body>
</html>
